  <div id="footer">
            	<p>&copy; 2011 Viet Linh Media Join Stock Company - design by <a href="http://www.tangkientrung.com" target="_blank">tangkientrung.com</a></p>
<!--    <ul>
        <li><a href="./">Trang Chủ</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
        <li><a href="404.html">Giới Thiệu</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
        <li><a href="404.html">Dịch Vụ</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
        <li><a href="404.html">Tin Tức</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
        <li><a href="404.html">Media</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
        <li><a href="404.html">Liên Hệ</a></li>
    </ul>-->
</div> <!-- end footer -->
<script>
    $("#footer").append("<ul>");
    $("div.main_menu > ul.topnav > li").each(function(index){
        var subNav = $(this).children("ul.subnav");
        var aElement = $(this).children("a.parent_item");
        if (subNav.length == 0){          
          if (index == $("div.main_menu > ul.topnav > li").length - 1){
            $("#footer").append("<li><a href=\""+aElement.attr("href")+"\">"+aElement.html()+"</a>&nbsp;&nbsp;</li>");
          }else{
            $("#footer").append("<li><a href=\""+aElement.attr("href")+"\">"+aElement.html()+"</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>");
          }          
        }else{
            var aElementChild = subNav.children(":first-child").children("a");
            $("#footer").append("<li><a href=\""+aElementChild.attr("href")+"\">"+aElement.html()+"</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>");
        }
    });
    $("#footer").append("</ul>");
</script>